import { defineStore } from "pinia";
import { ref } from "vue";
import { getLayoutList } from "@/api/layout.js";

export const useLayoutStore = defineStore('layout',
  () => {
    const layoutList = ref([])
    const updateLayoutList = async () => {
      const res = await getLayoutList()
      layoutList.value = res.result
    }

    return {
      layoutList,
      updateLayoutList
    }

  }
)
